//package com.atguigu.test;
//
//import org.junit.Test;
//import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//
//import com.atguigu.aop.MathCalculator;
//import com.atguigu.bean.Boss;
//import com.atguigu.bean.Car;
//import com.atguigu.bean.Color;
//import com.atguigu.bean.Red;
//import com.atguigu.config.MainConfigOfAOP;
//import com.atguigu.config.MainConifgOfAutowired;
//import com.atguigu.dao.BookDao;
//import com.atguigu.service.BookService;
//import com.atguigu.tx.TxConfig;
//import com.atguigu.tx.UserService;
//
//public class IOCTest_Tx {
//
//	@Test
//	public void test01(){
//		AnnotationConfigApplicationContext applicationContext =
//				new AnnotationConfigApplicationContext(TxConfig.class);
//
//		UserService userService = applicationContext.getBean(UserService.class);
//
//		userService.insertUser();
//		applicationContext.close();
//	}
//
//}
